<?php
require('./inc/functions.php');
if (isset($_GET['sid']) && $_GET['sid']) {
    require('./pages/sid.php');
    die();
}
is_logged(true);


global $pagenow;
switch ($pagenow) {
    case 'login' :
        require('./pages/login.php');
        break;
    case 'logout':
        $_SESSION['wbox_is_login'] = false;
        header('Location: index.php?p=login');
        break;
    default:
        require('./pages/home.php');
        break;
}





